import { NgModule, Optional, SkipSelf } from '@angular/core';
import { throwIfAlreadyLoaded } from './module-import-guard';
import { NetService } from './services/net-service/net.service';
import { MessageService } from './services/message-service/message.service';
import { UtilsService } from './services/utils-service/utils.service';


@NgModule({
  providers: [
    { provide: NetService, useClass: NetService },
    { provide: MessageService, useClass: MessageService },
    { provide: UtilsService, useClass: UtilsService }
  ],
  declarations: [],
  exports: [],
})
export class CoreModule {
  constructor( @Optional() @SkipSelf() parentModule: CoreModule) {
    throwIfAlreadyLoaded(parentModule, 'CoreModule');
  }
}